package ncme.auto.framework.core.upload.entity;

import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 * 文件传输对象
 */
public class MultipartFileParam implements Serializable
{
    private int chunkNumber;

    private long chunkSize;

    private long currentChunkSize;

    private long totalSize;

    private String identifier;

    private String filename;

    private String relativePath;

    private int totalChunks;

    private MultipartFile upfile;

    public MultipartFileParam(int chunkNumber, long chunkSize, long currentChunkSize, long totalSize, String identifier, String filename, String relativePath, int totalChunks, MultipartFile upfile) {
        this.chunkNumber = chunkNumber;
        this.chunkSize = chunkSize;
        this.currentChunkSize = currentChunkSize;
        this.totalSize = totalSize;
        this.identifier = identifier;
        this.filename = filename;
        this.relativePath = relativePath;
        this.totalChunks = totalChunks;
        this.upfile = upfile;
    }

    public int getChunkNumber() {
        return chunkNumber;
    }

    public void setChunkNumber(int chunkNumber) {
        this.chunkNumber = chunkNumber;
    }

    public long getChunkSize() {
        return chunkSize;
    }

    public void setChunkSize(long chunkSize) {
        this.chunkSize = chunkSize;
    }

    public long getCurrentChunkSize() {
        return currentChunkSize;
    }

    public void setCurrentChunkSize(long currentChunkSize) {
        this.currentChunkSize = currentChunkSize;
    }

    public long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getRelativePath() {
        return relativePath;
    }

    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath;
    }

    public int getTotalChunks() {
        return totalChunks;
    }

    public void setTotalChunks(int totalChunks) {
        this.totalChunks = totalChunks;
    }

    public MultipartFile getUpfile() {
        return upfile;
    }

    public void setUpfile(MultipartFile upfile) {
        this.upfile = upfile;
    }

}
